﻿<Window x:Class="AirlinePilotAcademy_WPF.UI_Administrator.Subject.SubjectSolution"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Crear Materia" Height="333" Width="338" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Window.Background>
        <ImageBrush ImageSource="/AirlinePilotAcademy_WPF;component/Images/Background.png" />
    </Window.Background>
    <Grid>
        <Label Content="Código:" HorizontalAlignment="Left" Margin="10,14,0,0" VerticalAlignment="Top" Foreground="White"/>
        <TextBox x:Name="TextBlock_code" IsEnabled="False" HorizontalAlignment="Left" Height="23" Margin="115,17,0,0" TextWrapping="Wrap" Text="Generado por el sistema" VerticalAlignment="Top" Width="205"/>

        <Label Content="Sigla:" HorizontalAlignment="Left" Margin="10,44,0,0" VerticalAlignment="Top" Foreground="White"/>
        <TextBox x:Name="TextBox_acronym" HorizontalAlignment="Left" Height="23" Margin="115,46,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="205" MaxLength="10"/>

        <Label Content="Nombre Materia:" HorizontalAlignment="Left" Margin="10,71,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.658,2.038" Foreground="White"/>
        <TextBox x:Name="TextBox_nameSubject" HorizontalAlignment="Left" Height="23" Margin="115,74,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="205"/>

        <Label Content="Creditos:" HorizontalAlignment="Left" Margin="10,117,0,0" VerticalAlignment="Top" Foreground="White"/>
        <TextBox x:Name="TextBox_credits" HorizontalAlignment="Left" Height="23" Margin="72,120,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="29" UndoLimit="3" TextChanged="TextBox_creditsValidation"/>

        <Label Content="Estado:" HorizontalAlignment="Left" Margin="133,117,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.658,0.615" Foreground="White"/>
        <ComboBox x:Name="ComboBox_status" HorizontalAlignment="Left" Margin="186,120,0,0" SelectedValuePath="Tag" VerticalAlignment="Top" Width="134">
            <ComboBoxItem  Content="Activo" Tag="A"/>
            <ComboBoxItem  Content="Espera" Tag="E"/>
            <ComboBoxItem  Content="Desactivado" Tag="D"/>
        </ComboBox>

        <Label Content="Descripción:" HorizontalAlignment="Left" Margin="10,141,0,0" VerticalAlignment="Top" Foreground="White"/>
        <TextBox x:Name="TextBox_description" HorizontalAlignment="Left" Height="94" Margin="10,167,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="310"/>

        <Button x:Name="Button_CreateSubject" Background="#FF87B42C" Content="Guardar" HorizontalAlignment="Left" Margin="165,271,0,0" VerticalAlignment="Top" Width="75" Click="Button_CreateSubject_Click"/>
        <Button x:Name="Button_ModifySubject" Background="#FF87B42C" Content="Modificar" HorizontalAlignment="Left" Margin="165,271,0,0" VerticalAlignment="Top" Width="75" Visibility="Hidden" Click="Button_Click_ModififySubject"/>
        <Button x:Name="Button_Cancel" Background="#FF87B42C"  Content="Cancelar" HorizontalAlignment="Left" Margin="245,271,0,0" VerticalAlignment="Top" Width="75" Click="Button_Cancel_Click"/>
    </Grid>
</Window>
